using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Import Subnetwork Controllers</para>
    /// <para>Imports subnetwork controllers from a .csv file into a utility network.</para>
    /// <para>将子网控制器从 .csv 文件导入到公共设施网络中。</para>
    /// </summary>    
    [DisplayName("Import Subnetwork Controllers")]
    public class ImportSubnetworkControllers : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportSubnetworkControllers()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network to which the subnetwork controllers will be imported.</para>
        /// <para>子网控制器将导入到的公共设施网络。</para>
        /// </param>
        /// <param name="_csv_file">
        /// <para>Input File</para>
        /// <para>The .csv file containing the subnetwork controllers to import.</para>
        /// <para>包含要导入的子网控制器的.csv文件。</para>
        /// </param>
        public ImportSubnetworkControllers(object _in_utility_network, object _csv_file)
        {
            this._in_utility_network = _in_utility_network;
            this._csv_file = _csv_file;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Import Subnetwork Controllers";

        public override string CallName => "un.ImportSubnetworkControllers";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_utility_network, _csv_file, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network to which the subnetwork controllers will be imported.</para>
        /// <para>子网控制器将导入到的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input File</para>
        /// <para>The .csv file containing the subnetwork controllers to import.</para>
        /// <para>包含要导入的子网控制器的.csv文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _csv_file { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public ImportSubnetworkControllers SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}